<html><head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"><title>StatusBar.pb</title></head>
<body bgcolor="#EFF1F0" link="#3A3966" vlink="#000000" alink="#000000">
<pre><font face="Courier New, Courier, mono"size="2"><font color="#3A3966">;
</font><font color="#3A3966">; ------------------------------------------------------------
</font><font color="#3A3966">;
</font><font color="#3A3966">;   PureBasic - StatusBar example file
</font><font color="#3A3966">;
</font><font color="#3A3966">;    (c) Fantaisie Software
</font><font color="#3A3966">;
</font><font color="#3A3966">; ------------------------------------------------------------
</font><font color="#3A3966">;
</font>

<b><font color="#3A3966">If</font></b> <font color="#3A3966">OpenWindow</font>(0, 100, 150, 300, 100, "PureBasic - StatusBar Example", <font color="#924B72">#PB_Window_SystemMenu</font> | <font color="#924B72">#PB_Window_SizeGadget</font>)

  <b><font color="#3A3966">If</font></b> <font color="#3A3966">CreateStatusBar</font>(0,<font color="#3A3966"> WindowID</font>(0))
<font color="#3A3966">    AddStatusBarField</font>(100)
<font color="#3A3966">    AddStatusBarField</font>(50)
<font color="#3A3966">    AddStatusBarField</font>(100)
  <b><font color="#3A3966">EndIf</font></b>

<font color="#3A3966">  StatusBarText</font>(0, 0, "Area 1")
<font color="#3A3966">  StatusBarText</font>(0, 1, "Area 2", <font color="#924B72">#PB_StatusBar_BorderLess</font>)
<font color="#3A3966">  StatusBarText</font>(0, 2, "Area 3", <font color="#924B72">#PB_StatusBar_Right</font> | <font color="#924B72">#PB_StatusBar_Raised</font>)
      
  <b><font color="#3A3966">Repeat</font></b>

  <b><font color="#3A3966">Until</font></b> <font color="#3A3966">WaitWindowEvent</font>() = <font color="#924B72">#PB_Event_CloseWindow</font>
  
<b><font color="#3A3966">EndIf</font></b> </font></pre>
</body></html>
